// 数据库配置信息加载到文件中

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Properties;

public class Test03 {
    public static void main(String[] args) throws Exception{
        Properties properties = new Properties();
//        properties.load(new FileInputStream("src/file/jdbc.properties"));
        properties.setProperty("className",JDBCUtiles.className);
        properties.setProperty("url",JDBCUtiles.url);
        properties.setProperty("user",JDBCUtiles.user);
        properties.setProperty("password",JDBCUtiles.password);
        properties.store(new FileOutputStream("src/file/jdbc.properties"),"");
    }
}
